﻿@Html.DevExpress().ComboBox(
    settings => {
        settings.Name = "comboBox";
        settings.Width = System.Web.UI.WebControls.Unit.Percentage(50);
        settings.Properties.DropDownWidth = 500;
        settings.Properties.DropDownStyle = DropDownStyle.DropDown;
        settings.CallbackRouteValues = new { Controller = "UpLevelAllowance", Action = "LargeDataComboBoxPartial" };
        settings.Properties.EnableCallbackMode = true;
        settings.Properties.CallbackPageSize = EnterpriseFund.Common.GlobalConstant.CONSTRING_PAGESIZE;
        settings.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
        settings.Properties.TextField = "NSRMC";
        settings.Properties.TextFormatString = "{0};{1}";
        settings.Properties.ValueField = "NSRDZDAH";
        
        settings.Properties.ValueType = typeof(long);
        settings.Properties.FilterMinLength = 1;
        settings.Properties.ClientSideEvents.ValueChanged = "Changed";
        settings.Properties.Columns.Add("NSRMC", "纳税人名称", 90);
        settings.Properties.Columns.Add("NSRBM", "纳税人编码", 90);
        
    }
                ).BindList(EnterpriseFund.Common.ComBoxGetData.GetPersonsRange, EnterpriseFund.Common.ComBoxGetData.GetPersonByID).Bind(ViewData["NSRDZDAH"]).GetHtml()